package com.yxy.common;

/**
 * API 返回的状态码
 * <p/>
 * Created by brucezhang on 11/01/2017.
 */
public class ResultCodes {

    /**
     * 操作成功
     */
    public static final int SUCCESS = 9;

    /**
     * 操作失败
     */
    public static final int FAILED = -1;

    /**
     * 数据库中 数据是否被 删除 ， 1：已删除
     */
    public static final int DB_DELETED = 1;

    /**
     * 数据库中 数据是否被 删除 ， 0：未删除F
     */
    public static final int DB_NOT_DELETED = 0;


    /**
     * 未经授权的请求
     */
    public static final int UNAUTHORIZED = -2;

    /**
     * 更新失败
     */
    public static final int UPDATE_FAILED = -3;

    /**
     * 删除失败
     */
    public static final int DELETE_FAILED = -4;

    /**
     * 删除失败
     */
    public static final int DELETE_NO = -41;

    /**
     * 创建失败
     */
    public static final int CREATE_FAILED = -5;


    public static final int COMMON_WARN_SEARCH_EMPTY = 2000;

    public static final int COMMON_WARN_ID_EMPTY = 2001;
    /**
     * ID前台传入必须为 数字
     */
    public static final int COMMON_WARN_ID_SHOULD_INTEGER = 2002;
    public static final int COMMON_WARN_CODE_SHOULD_NOT_NULL = 2003;


    /**
     * 用户不存在
     */
    public static final int USER_NOT_EXIST = 6001;
    /**
     * 用户存在
     */
    public static final int USER_EXIST = 6002;
    /**
     * 登录名存在
     */
    public static final int LOGIN_USER_EXIST = 6003;

    /**
     * 信息发送失败
     */
    public static final int USER_MESSAGE_SEND_FAILURE = 6004;
    /**
     * 输入信息有误
     */
    public static final int USER_PARAMETER_WRONG = 6012;
    /**
     * 登录失败
     */
    public static final int USER_LOGIN_FAILURE = 6014;
    /**
     * 用户被锁定
     */
    public static final int USER_LOGIN_LOCK = 6015;


    /**
     * 修改密码已存在
     */
    public static final int USER_CHANGED_PASSWORD_EXIST = 6016;

    /**
     * 手机验证码错误
     */
    public static final int USER_SMS_CODE_WRONG = 6008;
    /**
     * 电话号码错误
     */
    public static final int USER_PHONE_NUMBER_WRONG = 6009;


    /**
     * 没有验证码
     */
    public static final int USER_NO_CODE = 6010;
    /**
     * 两次密码输入不一致
     */
    public static final int USER_PASSWORD_NOT_SAME = 6015;
    /**
     * email 已经存在
     */
    public static final int EMAIL_ALREADY_EXIST = 5100;

    /**
     * email 不存在
     */
    public static final int EMAIL_NOT_EXIST = 5101;

    /**
     * email 格式不正确
     */
    public static final int EMAIL_FORMAT_ERROR = 5102;
    /**
     * 邮件发送失败
     */
    public static final int EMAIL_SEND_FAILED = 5103;
    /**
     * 验证码过期
     */
    public static final int EMAIL_CODE_EXPIRED = 5200;
    /**
     * 验证码错误
     */
    public static final int EMAIL_CODE_WRONG = 5201;

    /**
     * 登录失败，用户名或密码错误
     */
    public static final int EMAIL_LOGIN_FAILED = 5001;

    /**
     * 参数不正确
     */
    public static final int EMAIL_PARAMETER_WRONG = 5008;
    /**
     * 不合法的请求
     */
    public static final int EMAIL_Illegal_REQUEST = 5400;
    /**
     * 文件不合法
     */
    public static final int FILE_SIZE_ERROR = 7001;
    /**
     * 获取助手失败
     */
    public static final int HOME_ASSISTANT_NOT_EXIST = 7002;
    /**
     * 保存图片失败
     */
    public static final int HOME_SAVE_PHOTO_FAILED = 7003;
    /**
     * 选择应用操作失败
     */
    public static final int HOME_SELECT_RESOURCE_FAILED = 7003;

    /**
     * 传入信息有误
     */
    public static final int HOTEL_MESSAGE_NULL = 8001;
    /**
     * 表单输入数据为空
     */
    public static final int INPUT_IS_NULL = 8002;

    /**
     * 获取零件图纸失败
     */
    public static final int PART_IMAGE_NULL = 8003;
    /**
     * 图片格式错误
     */
    public static final int IMAGE_TYPE_ERROR = 8004;
    public static final int IMAGE_SIZE_ERROR = 8005;
    /**
     * 编号重复
     */
    public static final int CODE_REAPET= 9001;
    /**
     * 名称重复
     */
    public static final int  NAME_REPEAT=9002;
    /**
     * 客户编号重复
     */
    public static final int CUSTOMER_CSCODE_REPEAT= 9009;
    /**
     * 客户名称重复
     */
    public static final int CUSTOMER_CSNAME_REPEAT= 9009;


}
